import Vue from 'vue';

const basePath = 'address';
const list = (params) => {
    return Vue.prototype.$u.get(basePath + '/list', params);
};

const get = (params) => {
    return Vue.prototype.$u.get(basePath + '/detail', params);
};


const action = (params) => {
    return Vue.prototype.$u.post(basePath + '/action', params);
};


const remove = (params) => {
    return Vue.prototype.$u.delete(basePath + '/remove', params);
};

const setDefault = (params) => {
    return Vue.prototype.$u.post(basePath + '/setDefault', params);
};


export default {
    list,
    get,
    action,
    remove,
    setDefault
};
